import { createFeatureSelector, createSelector } from '@ngrx/store';
import { SelectedGraphObjectState, ZoomOperationState } from '../models/editor-model';
import { editorFeatureKey, editorZoomFeatureKey } from '../reducers/editor-reducer';


export const selectEditorState = createFeatureSelector<SelectedGraphObjectState>(editorFeatureKey);
export const selectEditor = createSelector(
     selectEditorState,
    (state: SelectedGraphObjectState) => state
);;


export const selectZoomState = createFeatureSelector<ZoomOperationState>(editorZoomFeatureKey);
export const selectEditorZoom = createSelector(
    selectZoomState,
    (state: ZoomOperationState) => state
);;
